package com.woniu.service;

import com.woniu.entity.*;
import com.woniu.vo.AddressVo;

import java.util.List;

public interface AddressService {
    List<AddressVo> findAddressByUserId(Integer userId);

    int selectDefaultAddressByUserId(Integer userId);

    int addAddressByUserId(UserAddress userAddress) throws Exception;

    int selectAddressCountByUserId(Integer userId)throws Exception;

    List<Provinces> findProvincesByCode() throws Exception;

    List<Cities> findCitiesByProvinceCode(String provinceCode) throws Exception;

    List<Areas> findAreasByCityCode(String cityCode) throws Exception;

    List<Streets> findStreetsByAreaCode(String areaCode) throws Exception;

    List<Villages> findVillagesByStreetCode(String streetCode) throws Exception;

    boolean editAddress(UserAddress userAddress);

    boolean deleteAddressByAddressId(Integer addressId);
}
